package com.xlh.wjdcserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.property.dto.QuestionAddDTO;
import com.property.dto.QuestionDelDTO;
import com.property.dto.QuestionUpDTO;
import com.property.entity.Option;
import com.property.entity.Question;

import java.util.List;

public interface QuestionService extends IService<Question> {
    void updateQuestion(QuestionUpDTO questionUpDTO);

    void addQuestion(List<QuestionAddDTO> questionsAndOptions);

    void deleteQuestion(List<QuestionDelDTO> questionIds);

    // 查询问卷所有问题
    List<Question> listQuestions(String id);

    List<QuestionAddDTO> listQuestionsByQid(String qid);
}
